package com.jiuyou.clientController.search;

import com.ruoyi.searcWord.domain.SearchWord;
import com.ruoyi.searcWord.service.ISearchWordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 热门搜索
 * @author chengliang
 * @date 2021/6/21
 **/
@RestController
@RequestMapping("/client/search/hot")

public class HotWordClientController {
    @Autowired
    private ISearchWordService searchWordService;

    @GetMapping
    public List<SearchWord> getList(){
        return searchWordService.selectSearchWordList(new SearchWord());
    }


}
